﻿using System;
using System.Collections;
using System.Data;
using System.Web.UI.WebControls;
using YTBZ.BUSINESSLOGIC;

namespace YTBZ.Z11_XD
{
    public partial class XDBZXXVIEW : BasePage
    {
        XDBLL bll = new XDBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                pageBind();
            }
        }

        #region pageBind
        protected void pageBind()
        {
            SortedList SDList = new SortedList();
            SDList["@OrderBH"] = Request["OrderBH"];
            SDList["@PCNum"] = Request["PCNum"];
            SDList["@TXBH"] = Request["TXBH"];
            SDList["@ZXXH"] = Request["ZXXH"];
            //SDList["@ZXCC"] = Request["ZXCC"];
            DataTable dt = bll.GetXDBZXX(SDList);
            dgListItem.DataSource = dt;
            dgListItem.DataBind();

            if (dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];
                lblOrderBH.Text = dr["OrderBH"].ToString();
                lblPCNum.Text = dr["PCNum"].ToString();
                lblCX.Text = dr["CX"].ToString();
                lblPCS.Text = dr["PCS"].ToString();
                lblTXBH.Text = dr["TXBH"].ToString();
                lblTXCC.Text = dr["TXCC"].ToString();
                lblTXJZ.Text = dr["TXJZ"].ToString();
                lblTXMZ.Text = dr["TXMZ"].ToString();
            }    

        }
        #endregion
    }
}